.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ccc;
    width: 400px;
    font-size: 14px;
    margin: 0 auto;
    padding: 30px 20px 0;

    .form {
        display: flex;
        flex-direction: column;
        .p{
            text-align: left;
        }
        .lab{
            margin-right: 140px;
        }
        .switch-button{
            display: none;/*隐藏表单元素*/
        }
        .switch-button+label{/*+选择器选择紧跟“+”左边选择器的第一个元素*/
            display: inline-block;
            position: relative;
            transition: all .3s;
            width: 60px;
            height: 30px;
            border: 1px solid #999;
            border-radius: 15px;
            background-color: #ccc;
        }
        .switch-button:checked+label{/*选中表单后的样式，:checked表示checkbox被选中后的状态*/
            background-color: rgb(54, 140, 225);
        }
        .switch-button+label::before{/*使用伪元素生成一个按钮*/
            content: '';
            display: block;
            height: 25px;
            width: 25px;
            position: absolute;
            border-radius: 25px;
            left: 2px;
            top: 2px;
            background-color: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
            transition: all .3s;
        }
        .switch-button:checked+label::before{/*checkbox选中时按钮的样式*/
            left: 32px;
            transition:  all .2s linear;
        }

        label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            width: 310px;

            p {
                margin-right: 10px;
                flex: 1;
                text-align: right;
            }

            .ipt {
                height: 20px;
                width: 220px;
            }

            .select {
                display: block;
                height: 24px;
                width: 227px;
            }

            .text {
                resize: none;
            }

        }

        .checkbox {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            justify-content: space-evenly;
            width: 310px;

            p {
                margin: 0 10px 0 10px;
                text-align: center;
            }
        }

        .radio {
            display: flex;
            align-items: center;
            justify-content: space-around;
            width: 200px;
        }

        .btns {
            .btn {
                width: 74px;
                line-height: 32px;
                border-radius: 4px;
                text-align: center;
                display: inline-block;
                cursor: pointer;
            }

            .sub {
                background-color: rgb(0, 136, 255);
                color: #fff;
                margin: 20px 56px;
            }

            .reset {
                background-color: rgb(180, 180, 180);
                color: #f5f5f5;
            }
        }
    }
}